<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>pogodynka_v1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/favs_newsletter.css" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
</head>

<body>
	<!-- START OF TOP DIV WRAPPER -->
	<div class="wrapper">
		<div id="spacer_left_top"></div>
		<div id="spacer_right_top"></div>
	</div>
	<!-- END OF TOP DIV WRAPPER -->

	<!-- START OF MIDDLE LINE (MENU) -->
	<div id="menu_wr">
		<div id="menu">




			<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
			array('label'=>'Strona główna', 'url'=>array('/site/index')),
			array('label'=>'Mapka', 'url'=>array('/site/mapka')),
			array('label'=>'Meteorogramy', 'url'=>array('/site/page', 'view'=>'wykresy')),
			array('label'=>'Kontakt', 'url'=>array('/site/contact')),
			array('label'=>'O nas', 'url'=>array('/site/about')),
            array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Zaloguj się"), 'visible'=>Yii::app()->user->isGuest),
            array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profil"), 'visible'=>!Yii::app()->user->isGuest),
            array('label'=>'Newsletter', 'url'=>array('/site/newsletterAdmin'), 'visible'=>Yii::app()->getModule('user')->isAdmin()),
            array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Wyloguj").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
			),
			)); ?>
		</div>
	</div>
	<!-- END OF MIDDLE LINE (MENU) -->

	<!-- START OF WRAPPER (MAIN CONTENT + PANELS) -->
	<div class="wrapper">
		<div class="content_wr">
			<div class="content">




			<?php if(isset($this->breadcrumbs)):?>




			<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
			)); ?>
				<!-- breadcrumbs -->
				
				
				
				
	<?php endif?>

	<?php echo $content; ?>
        	</div>
		</div>

		<div class="panel_wr">
			
			
		<?php if (isset($this->clips["sidebar"])) {
			echo $this->clips["sidebar"];
		}
		?>
		</div>
		<!--<div class="panel_wr">
			<div class="panel">
				<div class="panel_top">
					Newsletter test
				</div>
				<div class="panel_content">
					<a href="index.php?r=site/newsletter">Roześlij spam xD</a>
				</div>
			</div>
		</div>-->
		<div class="clear_panel"></div>
	</div>
	<!-- END OF WRAPPER (MAIN CONTENT + PANELS) -->

	<!-- START OF FOOTER -->
	<div id="footer">
		HKM &copy; 2011
		<div class="ft_w3c">
			<a href="http://validator.w3.org/check?uri=" class="w3c_xhtml"></a> <a
				href='http://jigsaw.w3.org/css-validator/validator?uri=index.html&amp;profile=css3&amp;usermedium=all&amp;warning=1&amp;vextwarning='
				class="w3c_css"></a>
		</div>
	</div>
	<!-- END OF FOOTER -->
</body>
</html>
